package com.m.dao.mapper;

import com.m.dao.entity.SceneManagerEntity;
import com.m.pojo.dto.scenemanager.SceneDimensionDto;
import com.m.pojo.dto.scenemanager.SceneInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author miracle
 * @since 2022-01-26
 */
@Mapper
public interface SceneManagerMapper  {

    List<SceneInfoDto> getAllSceneInfo(@Param("name") String name, @Param("type") Integer type);

    void insertUseGeneratedKeys(@Param("sceneManagerEntity") SceneManagerEntity sceneManagerEntity);

    SceneManagerEntity selectByPrimaryKey(@Param("id")Long id);

    void deleteByPrimaryKey(@Param("id")Long id);

    List<SceneDimensionDto> getSceneDimInfo(@Param("sceneId") Long sceneId);
}
